var prov={ 
	"110000000000":["北京",[116.40 , 40.40 ]],
	"120000000000":["天津",[117.04 , 39.52]],
	"130000000000":["河北",[115.21 , 38.44]],
	"140000000000":["山西",[111.95,37.65]],
	"150000000000":["内蒙古",[112.17 , 42.81]],
	"210000000000":["辽宁",[123.42 , 41.29]],
	"220000000000":["吉林",[126.32 , 43.38]],
	"230000000000":["黑龙江",[128.34 , 47.05]],
	"310000000000":["上海",[121.46 , 31.28]],
	"320000000000":["江苏",[120.26 , 32.54]],
	"330000000000":["浙江",[120.15 , 29.28]],
	"340000000000":["安徽",[117.28 , 31.86]],
	"350000000000":["福建",[118.31 , 26.07]],
	"360000000000":["江西",[115.89 , 27.97]],
	"370000000000":["山东",[118.01 , 36.37]],
	"410000000000":["河南",[113.46 , 34.25]],
	"420000000000":["湖北",[112.29 , 30.98]],
	"430000000000":["湖南",[112.08 , 27.79]],
	"440000000000":["广东",[113.98 , 22.82]],
	"450000000000":["广西",[108.67 , 23.68]],
	"460000000000":["海南",[110.03 , 19.33]],
	"500000000000":["重庆",[107.51 , 29.63]],
	"510000000000":["四川",[103.36 , 30.65]],
	"520000000000":["贵州",[106.91 , 26.67]],
	"530000000000":["云南",[101.71 , 24.84]],
	"540000000000":["西藏",[89.13 , 30.66]],
	"610000000000":["陕西",[108.94 , 34.46]],
	"620000000000":["甘肃",[103.82 , 36.05]],
	"630000000000":["青海",[97.07 , 35.62]],
	"640000000000":["宁夏",[106.27 , 36.76]],
	"650000000000":["新疆",[86.61 , 40.79]]
 }

 var n=0
 var pp2=[{value:10000,name:'北京'},]
 var points = []
 var pp1=[]
 var timer
 var timer1
 var timer3
 var timer4
function change(t) {
	if (t < 10) {
		return "0" + t;
	} else {
		return t;
	}
}

function fenge (num) {  
    var reg=/\d{1,3}(?=(\d{3})+$)/g;   
    return (num + '').replace(reg, '$&,');  
}

function formDate(dom) {
	var d = new Date();
	var year = d.getFullYear();
	var month = change(d.getMonth() + 1);
	var day = change(d.getDate());
	var hour = change(d.getHours());
	var minute = change(d.getMinutes());
	var second = change(d.getSeconds());
	var weekarr = ["日", "一", "二", "三", "四", "五", "六"];
	var key = d.getDay()
	document.getElementById(dom).innerHTML = year + '/' + month + '/' + day + '/' + hour + ':' + minute + ' 星期' + weekarr[
		key] //2020/09/20 13:25 星期日	
	setTimeout(function() {
		formDate(dom)
	}, 60000)
}





function getdata1(canshu){
	var ws = new WebSocket("ws://screen.dataexs.cn/ws");
	ws.onopen = function(evt) {
	  var parm={
		  cmd: canshu
	  }
	  ws.send(JSON.stringify(parm));
	};
	
	ws.onmessage = function(evt) {
		var nav=JSON.parse(evt.data).data
		$('.nav ul').html(`
			<li>
				<p>数据资产总量</p>
				<p>${fenge(nav.drs_total)} <span>（万DRs）</span></p>
			</li>
			<li>
				<p>数据资产流通总量</p>
				<p>${fenge(nav.drs_traded)} <span>（万DRs）</span></p>
			</li>
			<li>
				<p>成交总金额</p>
				<p>${fenge(nav.amount_total)} <span>（万元）</span></p>
			</li>
			<li>
				<p>当日新增数据资产</p>
				<p>${fenge(nav.drs_today)} <span>（万DRs）</span></p>
			</li>
			<li>
				<p>当日成交金额</p>
				<p>${fenge(nav.amount_today)} <span>（万元）</span></p>
			</li>
		`)
	};
}	
function getdata2(canshu){
	var ws = new WebSocket("ws://screen.dataexs.cn/ws");
	ws.onopen = function(evt) {
	  var parm={
		  cmd: canshu
	  }
	  ws.send(JSON.stringify(parm));
	};
	
	ws.onmessage = function(evt) {
		var arr=JSON.parse(evt.data).data
		arr.prov_nodes.forEach(function(item){
			pp1.push({name:item.name,value: [item.lng,item.lat],itemStyle:{color:'#FFE346'}})
		})
		map(pp1,points,pp2)
		$('.pingtai ul').html(`
			<li>
				<img src="img/pt1.png" >
				<span>覆盖行业:</span>
				<span class="num">${arr.industry}</span>
				<span class="cell">个</span>
			</li>
			<li>
				<img src="img/pt2.png" >
				<span>覆盖区域:</span>
				<span class="num">${arr.area}</span>
				<span class="cell">个</span>
			</li>
			<li>
				<img src="img/pt3.png" >
				<span>数据提供方:</span>
				<span class="num">${arr.seller}</span>
				<span class="cell">家</span>
			</li>
			<li>
				<img src="img/pt4.png" >
				<span>可信计算节点:</span>
				<span class="num">${arr.compute_node}</span>
				<span class="cell">个</span>
			</li>
			<li>
				<img src="img/pt5.png" >
				<span>根节点数量:</span>
				<span class="num">${arr.prov_node}</span>
				<span class="cell">个</span>
			</li>
			<li>
				<img src="img/pt6.png" >
				<span>区域节点数量:</span>
				<span class="num">${arr.city_node}</span>
				<span class="cell">个</span>
			</li>
		`)
	}; 
}

function getdata3(canshu){
	var ws = new WebSocket("ws://screen.dataexs.cn/ws");
	ws.onopen = function(evt) {
	  var parm={
		  cmd: canshu
	  }
	  ws.send(JSON.stringify(parm));
	};


	function objSort(obj,p){
		function sortId(a,b){
		   return b[p]-a[p]
		}
		return obj.sort(sortId);
	}
	 
	ws.onmessage = function(evt) {
		var arr=JSON.parse(evt.data).data.list				
		var total=0	
		arr=objSort(arr,'drs')		
		total=Math.max(arr[0]['drs'])
		var zcstr = ""
		pp2=[]
		
		arr.forEach(function(item, key) {
			pp2.push({
				value:item.drs,
				name:prov[item.province_id][0]
			})	
			zcstr += '<li class="clearfix">' +
				'<div class="fl left">' +
				'<span>' + (key + 1) + '</span>' +
				'<span title="' + prov[item.province_id][0] + '">' + prov[item.province_id][0] + '</span>' +
				'</div>' +
				'<div class="fl right">' +
				'<p class="process"><span class="bar" style="width:' + (item.drs/total)*100 + '%;"></span></p>' +
				'<p>' + fenge(item.drs) + ' (万DRs)</p>' +
				'</div>' +
				'</li>'
		})
		var sum=0
		arr1=objSort(arr,'amount')
		sum=Math.max(arr1[0]['amount'])
		var jnestr = ""
		arr1.forEach(function(item, key) {
			jnestr += '<li class="clearfix">' +
				'<div class="fl left">' +
				'<span>' + (key + 1) + '</span>' +
				'<span>' + prov[item.province_id][0] + '</span>' +
				'</div>' +
				'<div class="fl right">' +
				'<p class="process"><span class="bar" style="width:' + (item.amount/sum)*100 + '%;"></span></p>' +
				'<p>' + fenge(item.amount) + ' 万元</p>' +
				'</div>' +
				'</li>'
		})
		$('.zichan ul').html(zcstr)
		$('.jine ul').html(jnestr)
		renderZcjj(arr)
		map(pp1,points,pp2)
		clearInterval(timer3)
		clearInterval(timer4)
		timer3 = setInterval(function() {
			topScroll1(".scroll2",2000);
		},3000);		
	};
}

function getdata4(canshu){
	var ws = new WebSocket("ws://screen.dataexs.cn/ws");
	ws.onopen = function(evt) {
	  var parm={
		  cmd: canshu
	  }
	  ws.send(JSON.stringify(parm));
	};
	
	ws.onmessage = function(evt) {
		var res=JSON.parse(evt.data).data
		var time=res.create_time.substr(0,10)+'  '+res.create_time.substr(11,8)
		$('.qukuai ul').html(`
			<li class="clearfix">
				<div class="left fl"><img src="img/qk1.png" ></div>
				<div class="right fl">
					<p title="${res.height}">${res.height}</p>
					<p>区块高度</p>
				</div>
			</li>
			<li class="clearfix">
				<div class="left fl"><img src="img/qk2.png" ></div>
				<div class="right fl">
					<p title="${res.avg_time}">${res.avg_time}</p>
					<p>平均出块时间</p>
				</div>
			</li>
			<li class="clearfix">
				<div class="left fl"><img src="img/qk3.png" ></div>
				<div class="right fl">
					<p title="${res.latest_hash}">${res.latest_hash}</p>
					<p>最新区块Hash值</p>
				</div>
			</li>
			<li class="clearfix">
				<div class="left fl"><img src="img/qk4.png" ></div>
				<div class="right fl">
					<p title="${time}">${time}</p>
					<p>最新区块生成时间</p>
				</div>
			</li>
			<li class="clearfix">
				<div class="left fl"><img src="img/qk5.png" ></div>
				<div class="right fl">
					<p title="${res.last_hash}">${res.last_hash}</p>
					<p>上一区块Hash值</p>
				</div>
			</li>
		`)
	}; 
}

function getdata5(canshu){
	var ws = new WebSocket("ws://screen.dataexs.cn/ws");
	ws.onopen = function(evt) {
	  var parm={
		  cmd: canshu
	  }
	  ws.send(JSON.stringify(parm));
	};
	
	ws.onmessage = function(evt) {
		var arr=JSON.parse(evt.data).data.list
		var fenshi=[]
		var datax=[]
		var data1=[]
		var data2=[]
		arr.forEach(function(item){
			datax.push(item.name.substr(11,8))
			data1.push(item.drs_traded)
			data2.push(item.amount)
		})
		fenshi.leg=['流通数据资产量', '成交金额']
		fenshi.name=['资产流通量(万DRs)','成交金额(万元)']
		fenshi.datax=datax
		fenshi.data1=data1
		fenshi.data2=data2
		renderEchart('echart1',fenshi,9)
	}; 
}

function getdata6(canshu){
	var ws = new WebSocket("ws://screen.dataexs.cn/ws");
	ws.onopen = function(evt) {
	  var parm={
		  cmd: canshu
	  }
	  ws.send(JSON.stringify(parm));
	};
	
	ws.onmessage = function(evt) {
		var arr=JSON.parse(evt.data).data.list
		var rixian=[]
		var datax=[]
		var data1=[]
		var data2=[]
		arr.forEach(function(item){
			datax.push(item.name.substr(0,10))
			data1.push(item.drs_increased)
			data2.push(item.drs_traded)
		})
		rixian.leg=['数据资产增长量', '数据流通量']
		rixian.name=['增长量(万DRs)','流通量(万DRs)']
		rixian.datax=datax
		rixian.data1=data1
		rixian.data2=data2
		renderEchart('echart2',rixian,6)
	};
}

function getdata7(canshu){
	var ws = new WebSocket("ws://screen.dataexs.cn/ws");
	ws.onopen = function(evt) {
	  var parm={
		  cmd: canshu
	  }
	  ws.send(JSON.stringify(parm));
	};
	
	ws.onmessage = function(evt) {
		var arr=JSON.parse(evt.data).data.list
		var state1=['【确权】','【发布】','【流通】']
		var state2=['已确权登记','已发布上架','已可信流通']
		var sjzc=[]
		arr.forEach(function(item,key){
			var num=0
			if(item.type==3){
				num=fenge(item.value)+' 元'
			}else{
				num=fenge(item.value)+' DRs'
			}
			sjzc.push({
				'state':state1[item.type-1],
				'comp':item.firm_name,
				'type':state2[item.type-1],
				'rk':item.name,
				'num':num,
				'time':item.update_time.substr(0,19).replace('T',' '),
				'icon':'icon'+item.type+'.png'
			})
		})
		renderSj(sjzc)
	};
}

function getdata8(){
	var ws = new WebSocket("ws://screen.dataexs.cn/ws");
	ws.onmessage = function(evt) {
		var arr=JSON.parse(evt.data).data		
		var points1=[
			{name:'数据资产数量',coords: [[arr['from']['lat'],arr['from']['lng']],[arr['to']['lat'],arr['to']['lng']]],lineStyle:{color:'#FFE346'},num:arr['value']}, 
		]
		 map(pp1,points1,pp2)
	};
}

function renderSj(res) {
	var sjstr = ""
	res.forEach(function(item, key) {
		sjstr += '<li>'
					+'<p>'
						+'<img src="img/'+item.icon+'" >'
						+'<span class="s1">'+item.state+'</span>'
						+'<span class="s2">'+item.comp+'<font class="s3">'+item.type+'</font>'+item.rk+'</span>'
						+'<span class="s4">'+item.num+'</span>'
						+'<span class="s5">'+item.time+'</span>'
					+'</p>'
				+'</li>'
	})
	$('.sjzc ul').html(sjstr)
	clearInterval(timer)
	timer = setInterval(function() {
		topScroll(".scroll",2000);
	},3000);
}

function renderZcjj(res) {		
	var zcstr = ""
	res.forEach(function(item, key) {
		if(key%2==0){
			zcstr += '<li>'
						+'<span class="s0">'+(key+1)+'</span>'
						+'<span class="s1" title="'+prov[item.province_id][0]+'">'+prov[item.province_id][0]+'</span>'
						+'<span class="s2">'+item.population+'</span>'
						+'<span class="s2">'+item.firm+'</span>'
						+'<span class="s3">'+item.netizen+'</span>'
						+'<span class="s4">'+item.gdp+'</span>'
					+'</li>'
		}else{
			zcstr += '<li class="line">'
						+'<span class="s0">'+(key+1)+'</span>'
						+'<span class="s1" title="'+prov[item.province_id][0]+'">'+prov[item.province_id][0]+'</span>'
						+'<span class="s2">'+item.population+'</span>'
						+'<span class="s2">'+item.firm+'</span>'
						+'<span class="s3">'+item.netizen+'</span>'
						+'<span class="s4">'+item.gdp+'</span>'
					+'</li>'
		}
		
	})
	$('.zcjj ul').html(zcstr)
	clearInterval(timer1)
	timer1 = setInterval(function() {
		topScroll(".scroll1",2000);
	},3000);
}

function renderEchart(dom,res,max1,max2,num){
	var myChart = echarts.init(document.getElementById(dom));
	option = {
		tooltip: {
			trigger:'axis',			
		},
		grid : {
			top:'25%',
			left : '5%',   //组件离容器左侧的距离
			right : '5%',
			bottom : '5%',
			containLabel : true     //grid 区域是否包含坐标轴的刻度标签
		},
		legend: {
			data:res.leg,
			textStyle:{//图例文字的样式
				color:['#008CE3','#005486'],
				fontSize:12
			}
		},		
		xAxis: {
			type: 'category',
			data: res.datax,
			axisLabel: {
				show: true,
				textStyle: {
					color: '#fff'
				}
			},
			axisLine:{
				lineStyle:{
					color:'#005486',
					width:1,   //这里是坐标轴的宽度,可以去掉
				}
			}
		},
		yAxis: [{
			type: 'value',
			name:res['name'][0],
			splitNumber:num,
			// max:max1,
			nameTextStyle:{
				color:'#fff',
				fontSize:12
			},
			splitLine: {
				show: true,
				lineStyle:{
					color:'#2768a5',
					width:1,   //这里是坐标轴的宽度,可以去掉
				}
		　　},
			axisLabel: {
				show: true,
				textStyle: {
					color: '#fff'
				}
			},
			axisLine:{
				show:false,
				lineStyle:{
					color:'#2768a5',
					width:1,   //这里是坐标轴的宽度,可以去掉
				}
			}
		},
		{
			type: 'value',
			name:res['name'][1],
			splitNumber:num,
			// max:max2,
			nameTextStyle:{
				color:'#fff',
				fontSize:12
			},
			splitLine: {
				show: false   
		　　},
			axisLabel: {
				show: true,
				textStyle: {
					color: '#fff'
				}
			},
			axisLine:{
				show:false,
				lineStyle:{
					color:'#2768a5',
					width:1,   //这里是坐标轴的宽度,可以去掉
				}
			}
		}],
		textStyle:{
			color:'#008CE3',
			fontSize:10
		},			
		series: [{
			data: res['data1'],
			type: 'line',
			name:res['leg'][0],
			yAxisIndex:0,
			lineStyle:{
				color: "#008CE3" ,
			},
			areaStyle: {
				color: {
					type: 'linear',
					x: 0,
					y: 0,
					x2: 0,
					y2: 1,
					colorStops: [{
						offset: 0, color: 'rgba(0, 140, 227, 1)' // 0% 处的颜色
					}, {
						offset: 1, color: 'rgba(0, 140, 227, 0)' // 100% 处的颜色
					}],
					global: false // 缺省为 false
				}
			},
			symbol: 'circle',
			symbolSize: 6,
			itemStyle:{
				 normal: {
					color: "#008CE3"
				}
			}
		},
		{
			data: res['data2'],
			type: 'line',
			name:res['leg'][1],
			yAxisIndex:1,
			lineStyle:{
				color: "#0ED9D7" ,
			},
			areaStyle: {
				color: {
					type: 'linear',
					x: 0,
					y: 0,
					x2: 0,
					y2: 1,
					colorStops: [{
						offset: 0, color: 'rgba(14, 217, 215, 1)' // 0% 处的颜色
					}, {
						offset: 1, color: 'rgba(14, 217, 215, 0)' // 100% 处的颜色
					}],
					global: false // 缺省为 false
				}
			},
			symbol: 'circle',
			symbolSize: 6,
			itemStyle:{
				 normal: {
					color: "#0ED9D7"
				}
			}
		}]
	};
	myChart.setOption(option);
}

// 地图
function map(data1,data2,data3){
	var uploadedDataURL = "js/data.json";
	var myChart = echarts.init(document.getElementById('echart3'));	 
	$.getJSON(uploadedDataURL, function(geoJson) {		    
		echarts.registerMap('china', geoJson);
		option = {
			tooltip: {
				trigger: 'item',
				formatter: function(params, ticket, callback) {
					if(data1[params.dataIndex]){
						return data1[params.dataIndex]['name']
					}					
				}
			},
			title: {
				text: '数据资产数量',
				x:13,
				top:30,
				textStyle: {
					color: '#ffffff',
					fontSize: 14,
				},
			},
			geo: {
			  map: 'china',
			  aspectScale: 0.75, //长宽比
			  zoom: 1,
			  roam: false,
			  itemStyle: {
				  normal: {
					shadowColor:'#03288C',
					shadowOffsetX: 8,
					shadowOffsetY:8
				  }
				},
				regions: [{
					name: '南海诸岛',
					itemStyle: {
						areaColor: 'rgba(0, 10, 52, 1)',		
						borderColor: 'rgba(0, 10, 52, 1)',
						normal: {
							opacity: 0,
							label: {
								show: false,
								color: "#009cc9",
							}
						}
					},
		
		
				}],
			},
			visualMap: {
				show:true,
				type: 'piecewise',  
				left: 26,
				top: 60,
				itemWidth:54,
				itemHeight:14,
				itemSymbol:"rect",
				showLabel: true,
				align:'left',
				//text: ["高", "低"],
				seriesIndex:0,
				textStyle:{
					color:'#fff'
				},
				inRange:{                               //定义 在选中范围中 的视觉元素
					color: ['#61A1D8','#84B5DF','#6396D0','#4772B8','#1E57A4','#03399D']
				},
				pieces: [                        
					{min: data3[0]['value']/6*5},  
					{min: data3[0]['value']/6*4, max: data3[0]['value']/6*5},
					{min: data3[0]['value']/6*3, max: data3[0]['value']/6*4},
					{min: data3[0]['value']/6*2, max: data3[0]['value']/6*3}, 
					{min: data3[0]['value']/6*1, max: data3[0]['value']/6*2}, 
					{min: 0, max: data3[0]['value']/6*1}, 
				],
				formatter: function (value) {                 //标签的格式化工具。
					if(value==0){
						return '低';  
					}else if(value==data3[0]['value']/6*5){
						return '高';  
					}else{
						return '';
					}
				}
			},
			series: [ {
				//name:'数据资产数量',
				type: 'map',
				roam: false,
				label: {
					normal: {
						show: true,
						textStyle: {
							color: '#1DE9B6'
						}
					},
					emphasis: {
						textStyle: {
							color: 'yellow'
						}
					}
				},
	
				itemStyle: {
				  normal: {
				   borderColor: '#0B3292',
					borderWidth: 1,
					areaColor: '#6396D0'
				  },
				  emphasis: {
						areaColor: '#03399D',
						borderWidth: 0.1
					}
				},
				zoom: 1,
				map: 'china' ,//使用
				data:data3
			  },{
					type: 'effectScatter',
					coordinateSystem: 'geo',
					showEffectOn: 'render',
					zlevel:1,
					rippleEffect: {
						period: 15,
						scale: 5,
						brushType: 'fill'
					},
					hoverAnimation: true,
					label: {
						normal: {
							formatter: '{b}',
							position: 'center',
							offset: [0, 30],
							color: '#ffff7f',
							show: false
						},
					},
					itemStyle: {
						normal: {
						   color:'#1DE9B6',
						   shadowBlur: 10,
						   shadowColor: '#333'
						}
					},
					symbolSize: 12,
					data: data1
					
				}, //地图线的动画效果
				{
					type: 'lines',
					zlevel: 2,
					effect: {
						show: true,
						loop:false,
						period: 3, //箭头指向速度，值越小速度越快
						trailLength: 0.4, //特效尾迹长度[0,1]值越大，尾迹越长重
						symbol: 'arrow', //箭头图标
						symbolSize: 7, //图标大小
					},
					lineStyle: {
						normal: {
							color:'#1DE9B6',
							width: 1, //线条宽度
							opacity: 0.1, //尾迹线条透明度
							curveness: .3 //尾迹线条曲直度
						}
					},
					data: data2
				}
	
			]
		};
		myChart.clear(option);
		myChart.setOption(option);
	});
}

// 向上滚动函数
function topScroll(enType,steep) { //滚动效果函数
  var noticeListH = $(enType+" li").height(), //获取滚动的li的高度
	noticeH = $(enType).parent().height(), //获取展示区域的高度
	noticeHListNum = Math.ceil(noticeH / noticeListH), //获取展示区域一共可以展示多少条数据,这里是因为布局的原因才*2的如果一行只有一个不需要*2
	listNum = $(enType+" li").length;
  if(listNum > noticeHListNum) {
	$(enType).animate({
	  'marginTop':-noticeListH+'px'
	},steep,'swing',function() { //当动画结束直接回调下面的函数
	  $(enType+' li:first').appendTo($(enType));
	  $(enType).css({'marginTop':'0'+'px'});
	});
  }
}
function topScroll1(enType,steep) { //滚动效果函数		
  var noticeListH = $(enType+" li").height(), //获取滚动的li的高度
	noticeH = $(enType).parent().height(), //获取展示区域的高度
	noticeHListNum = Math.ceil(noticeH / noticeListH), //获取展示区域一共可以展示多少条数据,这里是因为布局的原因才*2的如果一行只有一个不需要*2
	listNum = $(enType+" li").length;	
  if(listNum > noticeHListNum) {
	  n++
	$(enType).animate({
	  'marginTop':-noticeListH*n+'px'
	},steep,'swing',function() {		
		if(n+noticeHListNum==listNum||n+noticeHListNum>listNum){
			clearInterval(timer3)
			clearInterval(timer4)
			$('.tabDiv ul').css({'marginTop':'0'+'px'});
			n=0
			$('.zichan').hide()
			$('.jine').show()
			$('.tab span').removeClass('on')
			$('.je').addClass('on')			
			timer4 = setInterval(function() {
				topScroll2(".scroll3",2000);
			},3000);
		}		
		
	});
  }
}
function topScroll2(enType,steep) { //滚动效果函数		
  var noticeListH = $(enType+" li").height(), //获取滚动的li的高度
	noticeH = $(enType).parent().height(), //获取展示区域的高度
	noticeHListNum = Math.ceil(noticeH / noticeListH), //获取展示区域一共可以展示多少条数据,这里是因为布局的原因才*2的如果一行只有一个不需要*2
	listNum = $(enType+" li").length;	
  if(listNum > noticeHListNum) {
	  n++
	$(enType).animate({
	  'marginTop':-noticeListH*n+'px'
	},steep,'swing',function() {
		if(n+noticeHListNum==listNum||n+noticeHListNum>listNum){
			clearInterval(timer4)
			clearInterval(timer3)
			$('.tabDiv ul').css({'marginTop':'0'+'px'});
			n=0
			$('.jine').hide()
			$('.zichan').show()
			$('.tab span').removeClass('on')
			$('.zl').addClass('on')			
			timer3 = setInterval(function() {
				topScroll1(".scroll2",2000);
			},3000);
		}		
	});
  }
}

